import {http} from '../utils/http'
import type { loginForm,Businessman } from '../types/login' 

//登录相关的接口
//登录
export const login=(data:loginForm)=>{
  return http({
    method: 'POST',
    url: '/eduservice/businessman/login',
    data,
  })
}
//获取登录的用户名称和类型
export const getLoginLofo=()=>{
 return http({
    method: 'POST',
    url: '/eduservice/businessman/loginInfo',
  })
}
//登录用户的所有消息
export const getuserlofo=()=>{
 return http<Businessman[]>({
    method: 'GET',
    url: '/eduservice/businessman/userInfo',
  })
}
